package ar.com.contable.ganancias.editor;
 
import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.ui.forms.IManagedForm;
import org.eclipse.ui.forms.editor.FormEditor;
import org.eclipse.ui.forms.editor.FormPage;
import org.eclipse.ui.forms.editor.IFormPage;
import org.eclipse.ui.forms.widgets.FormToolkit;
 
public class MyEditorPage extends FormPage implements IFormPage{
 
   public MyEditorPage(FormEditor editor, String pageId, String pageTitle){
      super(editor, pageId, pageTitle);
   }
 
   @Override
   protected void createFormContent(IManagedForm managedForm) {
      super.createFormContent(managedForm);
      Composite client = managedForm.getForm().getBody();
      client.setLayout(new GridLayout(2, false));
      FormToolkit formToolkit = managedForm.getToolkit();
      formToolkit.createLabel(client, "Name:");
      formToolkit.createText(client, "", SWT.SINGLE|SWT.BORDER);
   }
}